package com.nhjf.model.finetTalk;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.GenericGenerator;

import com.nhjf.model.BaseModel;
import com.nhjf.model.teachers.Teacher;


@SuppressWarnings("serial")
@Entity
@Table(name = "finetTalk")
public class FinetTalk extends BaseModel {
	
	/**
	 * id
	 */
	@Id
	@GeneratedValue(generator = "generator")
	@GenericGenerator(name = "generator", strategy = "native")
	@Column(name = "id", unique = true)
	private Long finetTalkid;
	
	/**
	 * 分类：1推荐 2联考 3素描 4色彩 5速写 6设计 7校考 8趣味 9心理
	 */
	@Column(name="navigation")
	private Integer navigation;

	/**
	 * 封面
	 */
	@Column(name="imge")
	private String imge;
	
	/**
	 * 置顶：1置顶 0不是置顶
	 */
	@Column(name="topping")
	private Integer topping;
	
	/**
	 * 浏览量
	 */
	@Column(name="pageviews")
	private Integer pageviews;
	
	/**
	 * 标题
	 */
	@Column(name="title")
	private String title;
	
	/**
	 * 发布时间
	 */
	@Column(name="releasetime")
	private Date releasetime;
	
	/**
	 * 发布人
	 */
//	@ManyToOne(fetch = FetchType.LAZY)
//	@JoinColumn(name = "publisher")
	private Long publisher;
	
	/**
	 * 内容
	 */
	@Column(name="content")
	private String content;
	/**
	 * 排序
	 */
	@Column(name="serialNumber")
	private Integer serialNumber;
	@Transient
	private String releasedate;
	@Transient
	private Integer commentNum;
	
	public Integer getCommentNum() {
		return commentNum;
	}

	public void setCommentNum(Integer commentNum) {
		this.commentNum = commentNum;
	}

	public String getReleasedate() {
		return releasedate;
	}

	public void setReleasedate(String releasedate) {
		this.releasedate = releasedate;
	}

	public Integer getSerialNumber() {
		return serialNumber;
	}

	public void setSerialNumber(Integer serialNumber) {
		this.serialNumber = serialNumber;
	}

	public Long getFinetTalkid() {
		return finetTalkid;
	}

	public void setFinetTalkid(Long finetTalkid) {
		this.finetTalkid = finetTalkid;
	}



	public Integer getNavigation() {
		return navigation;
	}

	public void setNavigation(Integer navigation) {
		this.navigation = navigation;
	}

	public String getImge() {
		return imge;
	}

	public void setImge(String imge) {
		this.imge = imge;
	}


	public Integer getTopping() {
		return topping;
	}

	public void setTopping(Integer topping) {
		this.topping = topping;
	}

	public Integer getPageviews() {
		return pageviews;
	}

	public void setPageviews(Integer pageviews) {
		this.pageviews = pageviews;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Date getReleasetime() {
		return releasetime;
	}

	public void setReleasetime(Date releasetime) {
		this.releasetime = releasetime;
	}





	public Long getPublisher() {
		return publisher;
	}

	public void setPublisher(Long publisher) {
		this.publisher = publisher;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
	
	
	
}
